package uos.gcds.decoration;

import java.util.ArrayList;
import java.util.List;

import uos.gcds.Item;
import uos.gcds.style.Style;
import uos.gcds.style.StyleComponent;

public class Decoration  extends Item {

	private int price;
	private List<DecorationComponent> listComponents;
	
	public Decoration(String name, String detail, int price) {
		this.setName(name);
		this.setDetail(detail);
		this.setPrice(price);
		this.setComponentList(new ArrayList<DecorationComponent>());
	}

	public void updateItem(Item desc) {
		Decoration item = (Decoration)desc;
		this.setName( item.getName() );
		this.setDetail( item.getDetail() );
		this.setPrice( item.getPrice() );
		this.setComponentList( item.getComponentList() );
	}
	
	public void setComponentList(List<DecorationComponent> list) {
		this.listComponents = list;
	}
	
	public List<DecorationComponent> getComponentList(){
		return this.listComponents;
	}
	
	public void setPrice(int price){
		this.price = price;
	}
	
	public int getPrice(){
		return this.price;
	}
}
